<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head th:include="public/page_css::page_css ('查看质检单明细')" />

<body>
<section class="panel panel-padding layui-card-body">
    <div class="pro">
        <table id="table" class="table text-nowrap"></table>
    </div>
    <input type="hidden" class="layui-input" th:value="${sszjdid}" id="sszjdid"/>
</section>

</body>
<div th:include="public/public_js::public_js"></div>

<script th:inline="javascript">
    $(function () {
    })

</script>
<script>

    layui.use(['list', 'layer', 'zzpUtils', 'jquery', 'laydate'], function () {
        window.operateEvent = {
            "click .layui-btn-primary": function (e, value, row, index) {
                /*这里激活状态那个按钮用不到，啥都不需要写，只读*/
            },
        }
        var zzpUtils = layui.zzpUtils,
            $ = layui.jquery,
            laydate = layui.laydate;

        var $table = zzpUtils.table({
            elem: '#table',
            isApi: true,
            pagination:true,
            url: '/wmsqualityinspectionlistdetailed/list/'+$("#sszjdid").val(),
            columns: [{
                field: '',
                checkbox: true,
            }, {
                field: 'zjsf',
                title: '质检方式'
            },{
                field: 'goodsbh',
                title: '货品编号'
            },{
                field: 'goodsmc',
                title: '货品名称'
            },{
                field: 'bzmc',
                title: '包装名称'
            },  {
                field: 'dwmc',
                title: '单位名称'
            },{
                field: 'shsl',
                title: '收货数量'
            },{
                field: 'ypsl',
                title: '样品数鲁'
            },{
                field: 'yjsl',
                title: '应检数量'
            },{
                field: 'show_zt',
                title: '质检状态'
            }, {
                field: 'pc',
                title: '批次'
            },{
                field: 'scrq',
                title: '生产日期'
            }],
            queryParams: function () {//查询条件
                return  zzpUtils.getFormJson($("#searchForm"));
            },
            detailFormatter: function (index, row) {
                return "这里就没有确定过11";
            }
        });
    });


</script>
</html>